targets:
  debian-7: &debian
    build_dependencies:
      - libpam0g-dev
    dependencies:
      - libpam0g
      - git
  debian-8:
    <<: *debian
  ubuntu-12.04:
    <<: *debian
  ubuntu-14.04:
    <<: *debian
  ubuntu-16.04:
    <<: *debian
    build_dependencies:
      - bzr
      - mercurial
  centos-6: &el
    build_dependencies:
      - pam-devel
      # required for go buildpack
      - perl-Digest-SHA
    dependencies:
      - pam
      - git
  centos-7:
    <<: *el
before:
  - mv packager/Procfile .
after:
  - mv bin/gogs gogs
after_install: ./packager/hooks/postinst
buildpack: https://github.com/heroku/heroku-buildpack-go.git#v62
